package com.xc.c1

import scala.beans.BeanProperty

object Bean {

  def main(args: Array[String]): Unit = {
    val car = new Car
    car.setName("宝马")
    println("car name is " + car.getName)
  }

  class Car() {
    @BeanProperty var name: String = _;
  }

}
